package com.wx.test;


import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 把student实体类导入到
 * es中
 */
@Document(indexName = "student",type = "test")
public class Student {
    @Field(index = true,store = true,type = FieldType.Keyword)
    private String name;

    private String age;
    // 标识主键
    @Id
    private Integer id;

    private String des;

}
